//
//  Constants.h
//  mUBB
//
//  Created by Cosmin Stirbu on 1/13/13.
//  Copyright (c) 2013 Cosmin Stirbu. All rights reserved.
//

#import <Foundation/Foundation.h>


// Service Status Codes
typedef enum {
    StatusCodeSuccess = 200,
    StatusCodeNoContent = 204,
    StatusCodeBadRequest = 400,
    StatusCodeNotFound = 404,
    StatusCodeConflict = 409,
    StatusCodeConnectionError = -1,
} StatusCode;

// User Type
typedef enum _UserTypes {
    UserTypeRegular = -1,
    UserTypeTeacher = 1,
    UserTypeSecretary = 2,
} UserType;

// Type of Class
typedef enum _TypeOfClass {
    TypeOfClass_Course = 1,
    TypeOfClass_Seminar = 2,
    TypeOfClass_Laboratory = 3,
    TypeOfClass_Exam = 4,
    TypeOfClass_Consultatii = 5,
    TypeOfClass_Recuperare = 6,
    TypeOfClass_Other = 7,
} TypeOfClassEnum;

// Connection timeout interval
#define WS_TIMEOUT_INTERVAL 30

// WEB Service URL Keys
#define WS_COURSES_SERVICE_KEY @"CoursesService"
#define WS_ROOMS_SERVICE_KEY @"RoomsService"
#define WS_BOOKINGS_SERVICE_KEY @"BookingsService"
#define WS_NOTIFICATION_SERVICE @"NotificationService"
#define WS_USER_SERVICE @"UserService"

// Courses Filters
#define FILTER_NAME @"name"
#define FILTER_TEACHER @"teacher"
#define FILTER_CODE @"code"

// Check if device is iPAD
#define IS_IPAD() (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)